// To parse this JSON data, do
//
//     final cardMusic = cardMusicFromJson(jsonString);

import 'dart:convert';

CardMusic cardMusicFromJson(String str) => CardMusic.fromJson(json.decode(str));

String cardMusicToJson(CardMusic data) => json.encode(data.toJson());
///音乐描述卡片
class CardMusic {
    CardMusic({
        this.bg="assets/images/eg_7.png",
        this.lt=true,
        this.rt='100万',
        this.lbo,
        this.lbt,
        this.bottom="起床/健身/洗澡/想闹/开车/跑步/通勤",
    });
    ///背景图片路径，本地
    String bg;
    ///左上是否显示，默认显示
    bool lt;
    ///右上默认播放量100万
    String rt;
    ///左下第一行文字
    String? lbo;
    ///左下第二行文字
    String? lbt;
    ///底部文字叙述
    String bottom;

    factory CardMusic.fromJson(Map<String, dynamic> json) => CardMusic(
        bg: json["bg"],
        lt: json["lt"],
        rt: json["rt"],
        lbo: json["lbo"],
        lbt: json["lbt"],
        bottom: json["bottom"],
    );

    Map<String, dynamic> toJson() => {
        "bg": bg,
        "lt": lt,
        "rt": rt,
        "lbo": lbo,
        "lbt": lbt,
        "bottom": bottom,
    };
}


CardSwiper cardSwiperFromJson(String str) => CardSwiper.fromJson(json.decode(str));

String cardSwiperToJson(CardSwiper data) => json.encode(data.toJson());
///滚动音乐卡片
class CardSwiper {
    CardSwiper({
        required this.bg,
        required this.bottom,
    });
    ///背景图片
    String bg;
    ///底部文字
    String bottom;

    factory CardSwiper.fromJson(Map<String, dynamic> json) => CardSwiper(
        bg: json["bg"],
        bottom: json["bottom"],
    );

    Map<String, dynamic> toJson() => {
        "bg": bg,
        "bottom": bottom,
    };
}